package com.sgcc.operate.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sgcc.common.core.annotation.Excel;
import com.sgcc.common.core.web.domain.BaseEntity;

/**
 * 消息推送明细对象 o_msg_detail
 * 
 * @author sgcc
 * @date 2021-03-26
 */
public class OMsgDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息推送明细id */
    @Excel(name = "消息推送明细id")
    private String id;

    /** 消息推送id */
    @Excel(name = "消息推送id")
    private String msgsendid;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 发送状态 */
    @Excel(name = "发送状态")
    private String sendstatus;

    /** 首次发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "首次发送时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date firstsendtime;

    /** 重新发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "重新发送时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date resendtime;

    /** 失败原因 */
    @Excel(name = "失败原因")
    private String failreason;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    /** 逻辑删除标记（0：显示；1：隐藏） */
    @Excel(name = "逻辑删除标记", readConverterExp = "0=：显示；1：隐藏")
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setMsgsendid(String msgsendid) 
    {
        this.msgsendid = msgsendid;
    }

    public String getMsgsendid() 
    {
        return msgsendid;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setSendstatus(String sendstatus) 
    {
        this.sendstatus = sendstatus;
    }

    public String getSendstatus() 
    {
        return sendstatus;
    }
    public void setFirstsendtime(Date firstsendtime) 
    {
        this.firstsendtime = firstsendtime;
    }

    public Date getFirstsendtime() 
    {
        return firstsendtime;
    }
    public void setResendtime(Date resendtime) 
    {
        this.resendtime = resendtime;
    }

    public Date getResendtime() 
    {
        return resendtime;
    }
    public void setFailreason(String failreason) 
    {
        this.failreason = failreason;
    }

    public String getFailreason() 
    {
        return failreason;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("msgsendid", getMsgsendid())
            .append("mobile", getMobile())
            .append("sendstatus", getSendstatus())
            .append("firstsendtime", getFirstsendtime())
            .append("resendtime", getResendtime())
            .append("failreason", getFailreason())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("updateBy", getUpdateBy())
            .append("updateDate", getUpdateDate())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
